package com.info.game;

import com.badlogic.gdx.graphics.g2d.Sprite;
import com.component.game.RenderComponent;
import com.engine.game.GameFabric;
import com.engine.game.GameObject;
import com.engine.game.Helper;

public class CeilStage1RenderComponent implements RenderComponent{

    private Sprite sprite;
	
	public CeilStage1RenderComponent(){
		
        this.sprite = GameFabric.createSprite("images/ground.png");
		
		this.sprite.setBounds(Helper.subHalf(20, SizeOfThings.Stage1FloorWidth), Helper.subHalf(30, SizeOfThings.Stage1FloorHeight), 
				SizeOfThings.Stage1FloorWidth, SizeOfThings.Stage1FloorHeight);
		
	}
	
	
	@Override
	public void dispose() {
		
		this.sprite.getTexture().dispose();
	}

	@Override
	public void update(GameObject object) {
		
		
	}

	@Override
	public Sprite getSprite() {
		
		return this.sprite;
	}


}
